package com.zhny.aiot.louverbox.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;

public class LouverBoxStoreEntry extends StoreEntity {
    @PropertyValue(alias = "温度",description = "环境温度",unit = "°C",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private double temperature;
    @PropertyValue(alias = "湿度",description = "环境湿度",unit = "%RH",icon=IconConstract.Humidity,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private double humidity;
    @PropertyValue(alias = "光照",description = "光照强度",unit = "Lux",icon=IconConstract.Illumination,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private int illumination;
    @PropertyValue(alias = "二氧化碳",description = "空气二氧化碳含量",unit = "ppm",icon=IconConstract.Co2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private int co2;
    @PropertyValue(alias = "氧气",description = "空气氧气含量",unit = "ppm",icon=IconConstract.O2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private double o2;
    @PropertyValue(alias = "海拔高度",description = "海拔高度",unit = "m",icon=IconConstract.Altitude,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private int altitude;
    @PropertyValue(alias = "大气压强",description = "大气压强",unit = "mpa",icon=IconConstract.AtmosphericPressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private double atmosphericPressure;

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }
    public double getTemperature(){return this.temperature;}

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }
    public double getHumidity(){return this.humidity;}

    public void setIllumination(int illumination) {
        this.illumination = illumination;
    }
    public int getIllumination(){return this.illumination;}

    public void setCo2(int co2) {
        this.co2 = co2;
    }
    public int getCo2(){return this.co2;}

    public void setAltitude(int altitude) {
        this.altitude = altitude;
    }
    public int getAltitude(){return this.altitude;}

    public void setAtmosphericPressure(double atmosphericPressure) {
        this.atmosphericPressure = atmosphericPressure;
    }
    public double getAtmosphericPressure(){return this.atmosphericPressure;}

    public void setO2(double o2) {
        this.o2 = o2;
    }
    public double getO2(){return this.o2;}

//    public void setTemperature(String temperature) {
//        this.temperature = temperature;
//    }
//    public String getTemperature(){return this.temperature;}
//
//    public void setHumidity(String humidity) {this.humidity = humidity;}
//    public String getHumidity(){return this.humidity;}
//
//    public void setIllumination(String illumination) {
//        this.illumination = illumination;
//    }
//    public String getIllumination(){return this.illumination;}
//
//    public void setCo2(String co2) {
//        this.co2 = co2;
//    }
//    public String getCo2(){return this.co2;}
}
